package entity;

import java.sql.Timestamp;

public class Comment {
    private int id;
    private int blogId;
    private int userId;
    private String content;
    private int likeCount;
    private Timestamp createdTime;

    public Comment() {
    }

    public Comment(int id, int blogId, int userId, String content, int likeCount, Timestamp createdTime) {
        this.id = id;
        this.blogId = blogId;
        this.userId = userId;
        this.content = content;
        this.likeCount = likeCount;
        this.createdTime = createdTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBlogId() {
        return blogId;
    }

    public void setBlogId(int blogId) {
        this.blogId = blogId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getLikeCount() {
        return likeCount;
    }

    public void setLikeCount(int likeCount) {
        this.likeCount = likeCount;
    }

    public Timestamp getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Timestamp createdTime) {
        this.createdTime = createdTime;
    }
}
